package rj.servlet;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;
import java.io.PrintWriter;

@WebServlet(name = "ShowLetter", value = "/ShowLetter")
public class ShowLetter extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html;charset=utf-8");
        PrintWriter  out  =  response.getWriter();
        out.println("<html><body>");
        out.print("<BR>英文大写字母:  ");
        for(char  c='A';  c<='Z';  c++)  {
            ((PrintWriter) out).print(c  +  "  ");
        }
        out.print("<BR>英文小写字母:  ");
        for(char  c='a';  c<='z';  c++)  {
            out.print(c  +  "  ");
        }
        out.println("</body></html>");
    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }
}
